package com.wang.friend.domain.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wang.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;


@Setter
@Getter
@TableName("tb_user_exam")
public class UserExam extends BaseEntity {
    @Schema(description = "用户竞赛关联id", requiredMode = Schema.RequiredMode.REQUIRED)
    @TableId(type = IdType.ASSIGN_ID)
    private Long userExamId;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "竞赛id")
    private Long examId;

    @Schema(description = "用户成绩")
    private Integer score;

    @Schema(description = "用户在竞赛中的排名")
    private Integer examRank;
}